package com.khyr.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.khyr.Vo.QueryAllNewRequestVo;
import com.khyr.dao.CommentDao;
import com.khyr.dao.UserDao;
import com.khyr.entity.ChargeItem;
import com.khyr.entity.Comment;
import com.khyr.entity.HisRegistration;
import com.khyr.entity.User;
import com.khyr.service.EvaluateService;
import com.khyr.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：lyk
 * @date ：Created in 2025/3/17 10:16
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class EvaluateServiceImpl implements EvaluateService {
    @Autowired
    private CommentDao commentDao;
    @Autowired
    private UserDao userDao;
    @Override
    public R<List<Comment>> queryAllNew(QueryAllNewRequestVo queryAllNewRequestVo) {
//        QueryWrapper<Comment> queryWrapper = new QueryWrapper<>();
//        if(queryAllNewRequestVo.getName() != null){
//            String itemName = queryAllNewRequestVo.getName();
//            QueryWrapper<User> UserQueryWrapper = new QueryWrapper<>();
//            UserQueryWrapper.like("sys_user",itemName);
//            List<User> userList = userDao.selectList(UserQueryWrapper);
//            for (User user : userList) {
//                queryWrapper.or().eq("value_id",user.getUserId());
//            }
//        }
//
//        // 查询出所有的药品
//        queryWrapper.eq("item_type","0");
//        // 状态为已支付
//        queryWrapper.eq("status","1");
        return null;
    }
}
